import { configureStore } from '@reduxjs/toolkit'
import todoReducer from './todoSlice'

// 创建 Redux store，注册 todoSlice
const store = configureStore({
  reducer: {
    todo: todoReducer,
  },
})

export type RootState = ReturnType<typeof store.getState>
export type AppDispatch = typeof store.dispatch
export default store
